<div class="col-sm-12 col-md-12">


    <div class="row">
        <div class="col-sm-12 col-md-12">
            <form class="form-custom clearfix">
                <div class="col-sm-2 col-md-2">
                    <label>公告名称</label>
                    <input class="form-control" ng-model="params.annoName" type="text"/>
                </div>
                <div class="col-sm-2 col-md-2">
                    <label>发布人</label>
                    <input class="form-control" ng-model="params.annoPer" type="text"/>
                </div>
                <div class="col-sm-2 col-md-2">
                    <label>发布日期</label>
                    <div data-datetimepicker='params.annoDate'></div>
                </div>
               <!--  <div class="col-sm-2 col-md-2">
                    <label>发布机构</label>
                    <input class="form-control" ng-model="params.annoName" type="text"/>
                </div> -->
                <!-- <div class="col-sm-2 col-md-2">
                    <label>公告状态</label>
                    <input class="form-control" ng-model="params.annoState" type="text"/>
                </div> -->
               <!--  <div class="col-sm-2 col-md-2">
                    <label>开始日期</label>
                    <div data-datetimepicker></div>
                </div>
                <div class="col-sm-2 col-md-2">
                    <label>结束日期</label>
                    <div data-datetimepicker></div>
                </div> -->
                <div class="col-sm-2 col-md-2">
                    <label>&nbsp;</label>
                    <button class="btn btn-custom" type="submit" ng-click="refresh('first',true)">查询</button>
                    <button class="btn btn-custom" type="reset" ng-click="reset(params)">重置</button>
                </div>
            </form>
        </div>
    </div>

    <table class="table table-striped table-bordered table-condensed index-center table-costom">
        <thead>
        <tr>
            <th>序号</th>
            <th>公告名称</th>
            <th>发布机构</th>
            <th>发布人</th>
            <th>创建日期</th>
            <th>最后有效期</th>
            <th>公告状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr class="rowlink" ng-repeat="item in limitArr">
            <td>{{$index+1+current*limit}}</td>
            <td>{{item.annoName}}</td>
            <td>{{item.orgName}}</td>
            <td>{{item.userName}}</td>
            <td>{{item.annoDate | date:'yyyy-MM-dd'}}</td>
            <td>{{item.annoValidDate | date:'yyyy-MM-dd'}}</td>
            <td>
				<span ng-show="item.annoState==1">待审核</span>
			</td>
            <td>
                <a href="javascript:" data-toggle="modal" data-target="#eapDialog" ng-click="toPassAndReject(item)">审核</a>
            </td>
        </tr>
        </tbody>
    </table>

    <div 
		data-remote-paging="pager" 
		data-refresh="refresh" 
		data-current="current" 
		data-total="total" 
		data-data="limitArr"
		data-limit="limit"
		data-params="params"
	></div>
</div>

<!-- 提交审核公告对话框 -->
<div class="modal fade" id="eapDialog" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">审核公告</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-12 col-md-12">
                        <form role="form" class="form-horizontal" novalidate="novalidate">
                            <div class="form-group">
                                <div class="col-lg-2" align="right">公告名称:</div>
                                <div class="col-lg-9">
                                	{{announcement.annoName}}
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-2" align="right">机构名称:</div>
                                <div class="col-lg-9">
                                	{{announcement.orgName}}
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-2" align="right">发布人:</div>
                                <div class="col-lg-9">
                                	{{announcement.userName}}
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-2" align="right">最后有效日期:</div>
                                <div class="col-lg-9">
                                	{{announcement.annoValidDate}}
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-2" align="right">公告描述:</div>
                                <div class="col-lg-9   break-all">
                                	{{announcement.annoDesc}}
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-2" align="right">备注:</div>
                                <div class="col-lg-9   break-all">
                                	{{announcement.remards}}
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-2" align="right">审批意见:</div>
                                <div class="col-lg-9   break-all">
                                    <textarea class="form-control" rows="3" ng-model="announcement.apprComment"></textarea>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="pass(announcement)">通过</button>
                <button type="button" class="btn btn-warning" data-dismiss="modal" ng-click="reject(announcement)">驳回</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- 删除对话框 -->
<div class="modal fade" id="removeDialog" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">删除公告</h4>
            </div>
            <div class="modal-body">
                确认要删除此公告？
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">确认删除</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div><!-- /.modal -->
